package com.controller;

import com.entity.StorageHistory;
import com.entity.Stores;
import com.service.StorageHistoryService;
import com.until.Result;
import com.vo.Page;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * @ fileName:StorageHistoryController
 * @ description:
 * @ author:dzh
 * @ createTime:2022/5/3 16:43
 * @ version:1.0.0
 */
@RestController
@RequestMapping("StorageHistory")
public class StorageHistoryController extends BaseController {
    @Resource
    private StorageHistoryService service;
    @PostMapping("listAll")
    public Result listAll(@RequestBody Page<StorageHistory> page,HttpSession session){
        return success(service.listByParam(page));
    }
}
